<template>
	<view class="">
		<view class="pay_money">
			<span>报名金额</span>
			<view class="pay_money_money">
				￥385.00
			</view>
		</view>
		<view class="payment">
			<view class="pay_list" v-for="(item,index) in list" :key="index">
				<view class="payment_title">
					{{item.title}}
				</view>
				<view class="payment_bottom">
					<span>{{item.name}}</span>
					<view class="payment_price">
						￥{{item.price}}
					</view>
				</view>
			</view>
		</view>
		<!-- 底部金额及支付 -->
		<view class="pay_topay">
			<view class="payment_left">
				合计金额：<span>$999</span>
			</view>
			<view class="payment_btn">
				立即支付
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data () {
			return {
				list:[
					{title:'组别报名',name:'宾馆',price:'6565'},
					{title:'亲子组',name:'附加服务',price:'665'},
					{title:'组别报名',name:'宾馆',price:'65'}
					
				]
			}
		}
	}
</script>

<style lang="less" scoped>
	.pay_money {
		width: 100%;
		height: 160upx;
		background-color: #999999;
		// display: flex;
		// flex-direction: column;
		// align-items: center;
		text-align: center;
		padding-top: 20upx;
		box-sizing: border-box;
		span {
			color: #FFFFFF;
			font-size: 32upx;
		}
		.pay_money_money {
			margin-top: 10upx;
			color: #FFFFFF;
			font-size: 40upx;
		}
	}
	.payment {
		padding: 0 20upx;
		box-sizing: border-box;
		background-color: #FFFFFF;
		.pay_list {
		padding: 20upx 0 ;
		height: 160upx;
		background-color: #FFFFFF;
		box-sizing: border-box;	
		border-bottom: 2upx solid #999999;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		.payment_title {
			color: #333333;
			font-weight: bold;
			font-size: 32upx;
		}
		.payment_bottom {
			display: flex;
			justify-content: space-between;
			span {
				color: #666666;
				font-size: 28upx;
			}
			.payment_price {
				font-size: 36upx;
				color: #007AFF;
				}
		}
		}
		.pay_list:last-child {
			border-bottom: 0;
		}
	}
	.pay_topay {
		width: 100%;
		height: 140upx;
		background-color: #FFFFFF;
		position: absolute;
		bottom: 0;
		.payment_left {
			width: 55%;
			height: 100%;
			border-top: 2upx solid #999999;
			box-sizing: border-box;
			font-size: 36upx;
			color: #333333;
			line-height: 140upx;
			padding-left: 20upx;
			float: left;
			span {
				color: #007AFF;
			}
		}
		.payment_btn {
			float: left;
			width: 45%;
			height: 100%;
			text-align: center;
			line-height: 140upx;
			color: #FFFFFF;
			background-color: #999999;
		}
	}
</style>
